<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"  
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:c="http://java.sun.com/jsp/jstl/core">            
    <ui:param name="root" value="#{request.contextPath}/" />
    <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">                
                <ul class="nav">
                    <li>
                        <a class="brand" href="#{root}">Scrum PMT</a>
                    </li>
                    <li id="hprod">
                        <h:outputLink value="#{root}index.jsf" >
                            <h:outputText value="#{msgs.productos}"/>
                        </h:outputLink>
                    </li>  
                    <c:if test="${login.administrador}">
                        <li id="hnuser">
                            <h:outputLink value="#{root}newUser.jsf" >
                                <h:outputText value="#{msgs.nuevoUsuario}"/>
                            </h:outputLink>
                        </li>  
                    </c:if>                    
                    <li>
                        <h:form class="tr10">
                            <h:commandLink value="#{msgs.cerrarSesion}" action="#{login.logOut}" ></h:commandLink>
                        </h:form>                        
                    </li> 
                </ul>
                <ul class="nav pull-right">
                    <li class="dropdown">
                        <a> <h:outputText value="#{msgs.bienvenido}"/>  ${login.nombre}!</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</ui:composition>